/**
 * @description 将对象转成encodeurl格式
 * @param params
 * @returns
 */
export const getParamUrl = (params: any) => {
  let str = "";

  const keys = Object.keys(params);
  for (let key of keys) {
    str += `${key}=${params[key]}&`;
  }
  return str.slice(0, -1);
};

export default {
  getParamUrl,
};
